import random
computer = random.randint(0,2)
print(computer)
player = int(input('出剪刀输入0，出石头输入1，出布输入2：'))
if (computer ==0 and player == 1) or (computer == 1 and player == 2)or(computer ==2 and player==0):
    print('玩家获胜。')
elif computer == player:
    print('平局')
else:
    print('电脑获胜')


